package com.example.demo.mapper;


import com.example.demo.entity.Bill;
//import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BillMapper {

    public List<Bill> findBillsByWhere(Bill bill);

    public List<Bill> findAllBiis();
    public int insertBill(Bill bill);

   // @Select("select * from billtable where bill_id=#{id}")
    public Bill detailBill(Integer id);

    @Delete("delete from billtable where bill_id=#{id}")
    public int deleteBillById(Integer id);

    public int updateBill(Bill bill);
}
